<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <!-- 准备好一个容器 -->
    <div id="root">
        <h1>插值语法</h1>
        <h3>Hello, {{name}}</h3>
        <hr>
        <h1>指令语法</h1>
        <a v-bind:href="url">点我进百度</a>
    </div>
  
    <script>
        //创建Vue实例
         new Vue({
            el:'#root', //el用于指定当前Vue实例为哪个容器服务, 值通常为css选择器字符串
            data:{
                name:'尚硅谷1',
                url:'http://www.baidu.com'
            }
        })
    </script>
</body>
</html>